"""
Configuration settings for the FastMCP Demo project
"""

import os
from pydantic_settings import BaseSettings
from pydantic import ConfigDict
from typing import Optional


class Settings(BaseSettings):
    """Application settings"""

    # FastAPI settings
    HOST: str = "127.0.0.1"
    PORT: int = 8000
    DEBUG: bool = True

    # FastMCP settings
    MCP_HOST: str = "127.0.0.1"
    MCP_PORT: int = 8001
    MCP_NAME: str = "FastMCP Demo Server"

    # Database settings (for future use)
    DATABASE_URL: Optional[str] = None

    # External API settings (examples)
    WEATHER_API_KEY: Optional[str] = None
    GITHUB_TOKEN: Optional[str] = None

    # Security
    SECRET_KEY: str = "your-secret-key-here"

    model_config = ConfigDict(env_file=".env", env_file_encoding="utf-8")


# Create global settings instance
settings = Settings()
